using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Acms.Bll;
using System.Collections.Generic;

public partial class UserGeneratedContent_Default : BaseUserGeneratedContentPage
{
    public override Acms.Bll.Role.Roles[] AllowedRoles
    {
        get { return new Acms.Bll.Role.Roles[] { Acms.Bll.Role.Roles.Developer, Acms.Bll.Role.Roles.UserGeneratedContentEditor, Acms.Bll.Role.Roles.ContentEditor, Acms.Bll.Role.Roles.ContentViewer }; }
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void dsUploads_SelectData(object sender, Acms.DataControls.SelectEventArgs<Acms.Bll.PostUploadSummary> e)
    {
        List<PostUploadSummary> uploads = PostUploadSummary.GetAllBySiteId(AcmsContext.SiteId);

        e.SetData(uploads);

    }
    protected void dsVotes_SelectData(object sender, Acms.DataControls.SelectEventArgs<UserPostVoteAverage> e)
    {
        List<UserPostVoteAverage> votes = UserPostVoteAverage.GetAllBySiteId(AcmsContext.SiteId);

        e.SetData(votes);
    }
    protected void dsPostComments_SelectData(object sender, Acms.DataControls.SelectEventArgs<PostCommentSummary> e)
    {
        List<PostCommentSummary> data = PostCommentSummary.GetAllBySiteId(AcmsContext.SiteId);

        e.SetData(data);

    }
}
